package com.itce.arco.login;

import com.itce.arco.util.ReturnParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class LoginContrller {
    @PostMapping("/query")
    public ReturnParam query () {
        System.out.println("查询测试成功");
        return new ReturnParam(200,"成功",null);
    }
    @PostMapping("/login")
    public ReturnParam login () {
        System.out.println("登录测试成功");
        return new ReturnParam(200,"成功",null);
    }
    @PostMapping("/logout")
    public ReturnParam logout () {
        System.out.println("等处测试成功");
        return new ReturnParam(200,"成功",null);
    }
}

